From: Michael Albinus Date: Thu, 23 Jun 2011 13:03:04 +0000 (+0200) Subject: * net/tramp-sh.el (tramp-method-out-of-band-p): Check, whether X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~324^2~3355 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=938fb60472258cc2e241b53185c34b5654f83a2b;p=emacs.git * net/tramp-sh.el (tramp-method-out-of-band-p): Check, whether SIZE is a number. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 9235c492434..755fc61b8e0 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2011-06-23 Michael Albinus + + * net/tramp-sh.el (tramp-method-out-of-band-p): Check, whether + SIZE is a number. + 2011-06-23 Martin Rudalics * window.el (get-lru-window, get-mru-window) diff --git a/lisp/net/tramp-sh.el b/lisp/net/tramp-sh.el index 025b4ab6cf3..e340ddc6cb0 100644 --- a/lisp/net/tramp-sh.el +++ b/lisp/net/tramp-sh.el @@ -4661,6 +4661,8 @@ This is used internally by `tramp-file-mode-from-int'." (and ;; It shall be an out-of-band method. (tramp-get-method-parameter (tramp-file-name-method vec) 'tramp-copy-program) + ;; There must be a size, otherwise the file doesn't exist. + (numberp size) ;; Either the file size is large enough, or (in rare cases) there ;; does not exist a remote encoding. (or (null tramp-copy-size-limit)